<template>
  <div class="">
    <policy v-if="parentId == 2" :parentId="parentId"></policy>
    <technology v-if="parentId == 4 && !mgFlag" :parentId="parentId"></technology>
    <technology-mg v-if="parentId == 4 && mgFlag" :parentId="parentId"></technology-mg>
  </div>
</template>

<script>
import { getAction, postAction, downFile, downloadFileLink } from '@/api/manage'
import IndexLibLogModal from './modules/IndexLibLogModal'
import { policylLevel } from '@/views/library/dics'
import { formatDate } from '@/utils/util'
import Policy from '@/views/library/Policy'
import Technology from '@/views/library/Technology'
import TechnologyMg from '@/views/library/TechnologyMg'

export default {
  name: 'HteIndex',
  components: {
    IndexLibLogModal,
    Policy,
    Technology,
    TechnologyMg,
  },
  data() {
    return {
      parentId: this.$route.params && this.$route.params.id, //库id
      mgFlag: this.$route.params && this.$route.query && this.$route.query.mgFlag, //mgFlag
    }
  },
  created() {},
  methods: {},
}
</script>

<style lang="less" scoped>
</style>